package com.rr.sc.bo;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.rr.sc.model.Transaction;
import com.rr.sc.model.enums.TransactionType;

@Transactional
public interface TransactionBo {
	@Transactional
	public void saveOrUpdate(Transaction transaction);

	@Transactional(readOnly = true)
	public Transaction get(Long id);

	@Transactional
	public void delete(Transaction transaction);

	@Transactional(readOnly = true)
	public List<Transaction> getFiltered(Long userId, int month, int year,
			TransactionType transactionType, Long categoryId, Long accountId,
			String currencyId);
}
